﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Course.EditCourse" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<div><span class="h1"><%=GetText("TP073")%></span> <span class="grey12"><%=GetText("AS128")%></span></div>
							</div>
							<div class="submenuN_button"></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">	
					<div class="Center9001Right">
						<div class="center9001content">
							<div class="teach_area">
								<div>
									<div><strong><%=GetText("C0106")%>:*</strong><br /><label><input id="CourseText" type="text" class="text allwid" value="<%=cm.Title %>"/></label><span name="__V_S" vt="0" elt1="CourseText" reg=".{3,110}" style="color: Red;display:none" class="validMsg"><%=GetText("ST155",new string[]{"3","110"})%></span></div>
									<div class="margin10"><strong><%=GetText("C0016")%>:*</strong><br /><select id="selLanguageLearn" class="select allhalf"><option value="<%=cm.LanguageLearn %>" selected="selected"><%=BLF.StaticData.GetLanguageText(cm.LanguageLearn) %></option><%=GetTLang(tm.TLang1)%><%=GetTLang(tm.TLang2)%><%=GetTLang(tm.TLang3)%><%=GetTLang(tm.TLang4)%></select> <%=GetText("TP061")%> <select id="slefrom" class="select"><option value="1" <%=fromlevel()=="1"?"selected=\"selected\"":"" %>><%=GetText("C0019")%></option><option value="2" <%=fromlevel()=="2"?"selected=\"selected\"":"" %>><%=GetText("C0020")%></option><option value="3" <%=fromlevel()=="3"?"selected=\"selected\"":"" %>><%=GetText("C0021")%></option><option value="4" <%=fromlevel()=="4"?"selected=\"selected\"":"" %>><%=GetText("C0022")%></option></select> <%=GetText("TP024")%> <select id="sleto" class="select"><option value="1" <%=tolevel()=="1"?"selected=\"selected\"":"" %>><%=GetText("C0019")%></option><option value="2" <%=tolevel()=="2"?"selected=\"selected\"":"" %>><%=GetText("C0020")%></option><option value="3" <%=tolevel()=="3"?"selected=\"selected\"":"" %>><%=GetText("C0021")%></option><option value="4"  <%=tolevel()=="4"?"selected=\"selected\"":"" %>><%=GetText("C0022")%></option></select></div>
									<div class="margin10"><strong><%=GetText("TP080")%>:*</strong>
										<div id="mt"><%=GetBaseLanguage() %><%=GetMotherTongue(tm.MotherTongue)%><%=GetMotherTongue(tm.MotherTongue2)%><%=GetMotherTongue(tm.MotherTongue3)%><%=GetMotherTongue(tm.MotherTongue4)%></div><span style="color:Red;display:none" id="Smt"><br />Please select a language.</span></div>
									<div class="margin10"><strong><%=GetText("TP062")%>:*</strong><br /><select id='CType' class="select allwid"><option value="0" <%=cm.CType=="0"?"selected=\"selected\"":"" %>><%=GetText("WK615")%></option><option value="1" <%=cm.CType=="1"?"selected=\"selected\"":"" %>><%=GetText("WK616")%></option><option value="2" <%=cm.CType=="2"?"selected=\"selected\"":"" %>><%=GetText("WK617")%></option><option value="3" <%=cm.CType=="3"?"selected=\"selected\"":"" %>><%=GetText("WK618")%></option><option value="4" <%=cm.CType=="4"?"selected=\"selected\"":"" %>><%=GetText("WK619")%></option><option value="5" <%=cm.CType=="5"?"selected=\"selected\"":"" %>><%=GetText("WK620")%></option><option value="6" <%=cm.CType=="6"?"selected=\"selected\"":"" %>><%=GetText("WK621")%></option></select></div>
									<div class="margin10"><strong><%=GetText("TP008")%>:* </strong><br /><label><input type="text" id="tPrice" class="text allhalf" value="<%=(int)cm.Price %>"/> <%=GetText("TP016")%></label>&nbsp;&nbsp;<input type="checkbox" id="IsProFree" <%=cm.IsProFree?"checked=\"checked\"":"" %>/><%=GetText("TP009")%> <input type="checkbox" id="IsProDiscount" <%=cm.IsProDiscount?"checked=\"checked\"":"" %>/><%=GetText("TP154")%><span name="__V_S" vt="0" elt1="tPrice" reg="^[0-9]{1,6}" style="color: Red;display:none" class="validMsg"><%=GetText("TP302")%></span>
									</div>
									<div class="margin10"><strong><%=GetText("TP063")%>:* </strong>
										<div id="ErrorDesc" style="display:none" class="red10"><%=GetText("ST155",new string[]{"3","10000"})%><br /></div>	
										<div><input type="hidden" id="txtDesc" name="txtDesc" value="<%=HttpUtility.HtmlAttributeEncode(cm.Desc)%>" /><input type="hidden" id="txtDesc___Config" value="ImageBrowserURL=editor/filemanager/browser/default/browser.html?Type%3DImage%26Connector%3Dconnectors/aspx/connector.aspx" /><iframe id="txtDesc___Frame" src="/FCKeditor/editor/fckeditor.html?InstanceName=txtDesc&amp;Toolbar=italkiSimple" width="100%" height="150px" frameborder="no" scrolling="no"></iframe></div>
									</div>
									<div class="margin10">
										<strong><%=GetText("C0107")%></strong>: <span class="grey12">(<%=GetText("C0043")%>)</span><br />
										<table id="tbTag">
										<tr>
											<td><input type="checkbox" name="Tags" value="Advance" <%=TagCheck("Advance")?"checked=\"checked\"":"" %>/><label for="Checkbox1"><%=GetText("WK600")%></label></td>
											<td><input type="checkbox" name="Tags" value="Beginner" <%=TagCheck("Beginner")?"checked=\"checked\"":"" %>/><label for="Checkbox2"><%=GetText("WK601")%></label></td>
											<td><input type="checkbox" name="Tags" value="Conversation" <%=TagCheck("Conversation")?"checked=\"checked\"":"" %>/><label for="Checkbox3"><%=GetText("WK602")%></label></td>
											<td><input type="checkbox" name="Tags" value="Dictionary" <%=TagCheck("Dictionary")?"checked=\"checked\"":"" %>/><label for="Checkbox4"><%=GetText("WK603")%></label></td>
											<td><input type="checkbox" name="Tags" value="Exercises" <%=TagCheck("Exercises")?"checked=\"checked\"":"" %>/><label for="Checkbox5"><%=GetText("WK604")%></label></td>
										</tr>
										<tr>
											<td><input type="checkbox" name="Tags" value="Grammar" <%=TagCheck("Grammar")?"checked=\"checked\"":"" %>/><label for="Checkbox6"><%=GetText("WK605")%></label></td>									
											<td><input type="checkbox" name="Tags" value="Intermediate" <%=TagCheck("Intermediate")?"checked=\"checked\"":"" %>/><label for="Checkbox7"><%=GetText("WK606")%></label></td>
											<td><input type="checkbox" name="Tags" value="Lesson" <%=TagCheck("Lesson")?"checked=\"checked\"":"" %>/><label for="Checkbox8"><%=GetText("WK607")%></label></td>
											<td><input type="checkbox" name="Tags" value="Listening" <%=TagCheck("Listening")?"checked=\"checked\"":"" %>/><label for="Checkbox9"><%=GetText("WK608")%></label></td>
											<td><input type="checkbox" name="Tags" value="Pronunciation" <%=TagCheck("Pronunciation")?"checked=\"checked\"":"" %>/><label for="Checkbox10"><%=GetText("WK609")%></label></td>									
										</tr>
										<tr>
											<td><input type="checkbox" name="Tags" value="Reading" <%=TagCheck("Reading")?"checked=\"checked\"":"" %>/><label for="Checkbox11"><%=GetText("WK610")%></label></td>
											<td><input type="checkbox" name="Tags" value="Speaking" <%=TagCheck("Speaking")?"checked=\"checked\"":"" %>/><label for="Checkbox12"><%=GetText("WK611")%></label></td>
											<td><input type="checkbox" name="Tags" value="Tones" <%=TagCheck("Tones")?"checked=\"checked\"":"" %>/><label for="Checkbox13"><%=GetText("WK612")%></label></td>
											<td><input type="checkbox" name="Tags" value="Vocabulary" <%=TagCheck("Vocabulary")?"checked=\"checked\"":"" %>/><label for="Checkbox14"><%=GetText("WK613")%></label></td>
											<td><input type="checkbox" name="Tags" value="Writing" <%=TagCheck("Writing")?"checked=\"checked\"":"" %>/><label for="Checkbox14"><%=GetText("WK614")%></label></td>
										</tr>								
										</table>
										<div class="margin10"><label><input type="text" id="TagsText" name="Tags" class="text allwid" value="<%=Tags()%>"/></label><br /><span class="grey12"><%=GetText("AS044")%></span></div>
										<div id="ErrorTags" class="red10" style="display:none"><%=GetText("AS172")%></div>
									</div>
									<div class="margin10"><strong>License:</strong><br />
										<input id="rd0" name="ra" type="radio" value="0" <%=cm.License=="0"?"checked=\"checked\"":"" %> onclick="selrd($('rdall'))" /><%=GetText("WK628") %><br />
										<input id='rdall' name="ra" type="radio"  onclick="selrd($('rdall'))" <%=cm.License!="0"?"checked=\"checked\"":"" %>/>All contents at italki are licensed under <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/" target="_blank"> Creative Commons Public Domain license 3.0.</a><br />
										<div id="divr" style="display:<%=cm.License=="0"?"none":"" %>"><input id="rd1" type="radio" name="License" value="1" <%=cm.License=="1"?"checked=\"checked\"":"" %>/><%=GetText("WK622") %><br /><br /><input id="rd2" type="radio" name="License" value="2" <%=cm.License=="2"?"checked=\"checked\"":"" %>/><%=GetText("WK623") %><br /><br /><input id="rd3" type="radio" name="License" value="3" <%=cm.License=="3"?"checked=\"checked\"":"" %>/><%=GetText("WK624") %><br /><br /><input id="rd4" type="radio" name="License" value="4" <%=cm.License=="4"?"checked=\"checked\"":"" %>/><%=GetText("WK625") %><br /><br /><input id="rd5" type="radio" name="License" value="5" <%=cm.License=="5"?"checked=\"checked\"":"" %>/><%=GetText("WK626") %><br /><br /><input id="rd6" type="radio" name="License" value="6" <%=cm.License=="6"?"checked=\"checked\"":"" %>/><%=GetText("WK627") %></div><div class="margin10"><input type="button"  value="<%=GetText("GP219")%>" class="button" onclick="savecourse()"/>&nbsp;&nbsp;<input type="button" value="<%=GetText("C0056")%>" class="buttong" onclick="cucancel()"/></div></div>
								</div>
							</div> 
						</div>				   
					</div>
					<div class="center9001left"></div>				
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
var cid="<%=cid %>";
</script> 